package com.hanoi.wiki.model.json;

import java.io.Serializable;

import com.hanoi.wiki.model.User;
import com.hanoi.wiki.model.UserEvaluation;

public class UserEvaluationJson extends BaseJsonObject implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int id;
	private String position;
	private int pointEarned;
	private String description;
	private int status;
	private int user;
	
	public UserEvaluationJson() {
		
	}
	
	public UserEvaluationJson(UserEvaluation evaluation) {
		if(evaluation != null) {
			this.id = evaluation.getId();
			this.position = evaluation.getPosition();
			this.pointEarned = evaluation.getPointEarned();
			this.description = evaluation.getDescription();
			this.status = evaluation.getStatus();
			
			User user = evaluation.getUser();
			if(user != null) {
				this.user = user.getId();
			}
		}
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public int getPointEarned() {
		return pointEarned;
	}

	public void setPointEarned(int pointEarned) {
		this.pointEarned = pointEarned;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getUser() {
		return user;
	}

	public void setUser(int user) {
		this.user = user;
	}
	
	
	
}
